#ifndef _EBCTOOL_H_
#define _EBCTOOL_H_

#include "sr.h"
#include "ebc.h"

extern int	ct_flex_debug;
extern int	ctdebug;
extern ECMBOOL	continuation;

extern int ctparse(void);
extern void ebctool_readline(char *buf, int *result, int max);

extern void cmd_help(char *help_context);

extern void cmd_connect(const char *serverip, ecm_uint16 port, const char *mdname);
extern void cmd_peercon(char *peeraddr, ecm_uint32 timeout);

extern void cmd_call(char *target, ecm_uint32 timeout, char *asr);
extern void cmd_call_oneway(char *target, char *asr);
extern void cmd_bcall(char *target, ecm_uint32 size, ecm_uint32 count);

extern void cmd_send(char *target, char *asr);
extern void cmd_recv(char *pattern);

extern void cmd_bsend(char *target, ecm_uint32 size, ecm_uint32 count);
extern void cmd_brecv(char *pattern, ecm_uint32 count);

extern void cmd_peerbsend(ecm_uint32 size, ecm_uint32 count);
extern void cmd_peerbrecv(ecm_uint32 count);

extern void cmd_echo_server(void);
extern void cmd_route_print(void);
extern void cmd_moncb_add(const char *target);
extern void cmd_moncb_del(const char *target);
extern void cmd_route_add(const char *serverip);
extern void cmd_route_del(const char *serverip);

extern void cmd_pch_info(const char *addr);
extern void cmd_pch_list(void);
extern void cmd_pktb(void);
extern void cmd_call_info(void);
extern void cmd_monitor_info(void);
extern void cmd_mtrace_info(void);
extern void cmd_mtrace_on(ecm_uint32 level, ECMBOOL self_only);
extern void cmd_mtrace_off(void);
extern void cmd_mtrace_report(void);
extern void cmd_mtrace_clear(void);

#endif
